--防护不良 给牌
local fanghubuliang_active = fk.CreateSkill {
    name = "mcdh_fanghubuliang_active"
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

fanghubuliang_active:addEffect('active',{
    min_card_num = 1,
    target_num = 1,
    card_filter = function(self,player, to_select, selected)
        return #selected < Fk:currentRoom():getBanner("RoundCount")
    end,
    target_filter = function(self,player, to_select, selected, selected_cards)
        return #selected == 0 and player ~= to_select and #selected_cards == Fk:currentRoom():getBanner("RoundCount")
    end,
})

return fanghubuliang_active